package com.qxsx.midi.activity.me;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.RelativeLayout;

import com.qxsx.midi.R;
import com.qxsx.midi.activity.base.BaseActivity;

/**
 * Created by Zrj on 2015/9/9.
 */
public class ApplyShowActivity extends BaseActivity implements View.OnClickListener {

    private RelativeLayout rl_video, rl_voice, rl_picture;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_apply_show);
        setTitle("展示申请");
        setNavBtn(R.mipmap.back, 0);


        findById();
    }

    private void findById() {

        rl_video = (RelativeLayout) findViewById(R.id.rl_video);
        rl_voice = (RelativeLayout) findViewById(R.id.rl_voice);
        rl_picture = (RelativeLayout) findViewById(R.id.rl_picture);
        rl_video.setOnClickListener(this);
        rl_voice.setOnClickListener(this);
        rl_picture.setOnClickListener(this);


    }

    @Override
    protected void HandleTitleBarEvent(TitleBar component, View v) {
        switch (component) {
            case LEFT:
                finish();
                break;

        }
    }


    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.rl_video:
                startActivity(new Intent(ApplyShowActivity.this, ApplyVideoActivity.class));
                break;
            case R.id.rl_voice:
                startActivity(new Intent(ApplyShowActivity.this, ApplyMusicActivity.class));
                break;
            case R.id.rl_picture:
                startActivity(new Intent(ApplyShowActivity.this, ApplyImageActivity.class));
                break;


            default:
                break;
        }
    }
}
